package com.homedo.odin.solution.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import java.io.Serializable;
import lombok.Data;

/**
 * @author ZhangLei
 * @date 2018-05-15
 * @description 广告投放用户群
 */
@Data
@TableName("ad_serving_user_group")
public class AdServingUserGroup extends Model<AdServingUserGroup> {

    private static final long serialVersionUID = 1L;


    /**
     * 唯一标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 投放广告标识
     */
    @TableField(value = "ad_serving_id")
    private Long adServingId;
    /**
     * 用户组的 Value
     */
    @TableField(value = "user_group_id")
    private Integer userGroupId;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
